|
There are three different methods of executing commands from the Command Line client.
|
C:\Program Files\Vision Solutions\Double-Take for Linux> dtcl -i Command: login alpha administrator ******* domain_name User access level set to DT_FULL_ACCESS Command: |
|
C:\Program Files\Vision Solutions\Double-Take for Linux> type dtcl.txt login alpha administrator password domain; source alpha; repset list;
C:\Program Files\Vision Solutions\Double-Take for Linux> dtcl -f dtcl.txt User access level set to DT_FULL_ACCESS - List of rep sets - DataFiles enabled
C:\Program Files\Vision Solutions\Double-Take for Linux> |
Single Line Entry—Determine all of the scripting commands you want to run, and enter them in a single line (separated by semi-colons) at the command prompt where Double-Take Availability is installed. For example, you might use the following command to log on to a machine and display its replication sets.
|
C:\Program Files\Vision Solutions\Double-Take for Linux> dtcl login alpha administrator password domain; source alpha; repset list User access level set to DT_FULL_ACCESS - List of rep sets - DataFiles enabled
C:\Program Files\Vision Solutions\Double-Take for Linux> |
If you are running the Command Line client single line entry in a Linux shell, you must escape the semi-colon and any quotation marks with a backslash to keep the shell from interpreting them as its own command separators. For example, you might enter the following command.
dtcl login \"alpha-01\" administrator password domain\; source alpha\; repset list
If you are using the Windows command process (cmd.exe), it strips two layers of quotation marks during processing, any scripting command that you use that requires quotation marks must have three quotation marks around it. For example, if your machine name had a space in it, login "machine name" username password would be sufficient for the Command Line client interactive entry or file entry. But for the Command Line client single line entry, you would have to use login """machine name""" username password.